package com.itheima.common.exception;

import com.itheima.common.response.ResponseResult;

/**
 * @author Dqh
 * @create 2020-09-18 20:26
 * @desc 抛出异常的静态方法
 **/
public class ExceptionCast {//使用此静态方法抛出自定义异常
    public static void cast(ResponseResult result){
        throw new BusinessException(result);
    }

}
